//
//  JBWBaseResponse.h
//  DDFF
//
//  Created by 崔志伟 on 2018/7/26.
//  Copyright © 2018年 崔志伟. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JBWNetHTTPRequest.h"

@interface JBWBaseResponse : NSObject

/**
 请求url
 */
- (NSString *)getUrl;
/**
 请求体
 */
- (NSMutableDictionary *)requestBody;
/**
 请求头
 */
- (NSMutableDictionary *)requestHeaderField;

//拼接get参数
- (NSString *)getParameters:(NSMutableDictionary *)parameters;
// json数据转换为Dictionary
- (NSDictionary *)jSONObjectWithData:(NSData *)resultData;

/**
 POST

 @param startRequest 开始请求
 @param finishRequest 完成请求
 @param errorRequest 请求失败
 */
- (void)postRequest:(JBWNetHTTPStartRequest )startRequest finishRequest:(JBWNetHTTPFinishRequest)finishRequest errorRequest:(JBWNetHTTPErrorRequest)errorRequest;

/**
 GET
 
 @param startRequest 开始请求
 @param finishRequest 完成请求
 @param errorRequest 请求失败
 */
- (void)getRequest:(JBWNetHTTPStartRequest )startRequest finishRequest:(JBWNetHTTPFinishRequest)finishRequest errorRequest:(JBWNetHTTPErrorRequest)errorRequest;
@end
